import request from '@/utils/request'

// 查询家具资产列表
export function listJiaju(query) {
  return request({
    url: '/system/jiaju/list',
    method: 'get',
    params: query
  })
}

// 查询家具资产详细
export function getJiaju(id) {
  return request({
    url: '/system/jiaju/' + id,
    method: 'get'
  })
}

// 新增家具资产
export function addJiaju(data) {
  return request({
    url: '/system/jiaju',
    method: 'post',
    data: data
  })
}

// 修改家具资产
export function updateJiaju(data) {
  return request({
    url: '/system/jiaju',
    method: 'put',
    data: data
  })
}

// 删除家具资产
export function delJiaju(id) {
  return request({
    url: '/system/jiaju/' + id,
    method: 'delete'
  })
}

export function listByChange4Jiaju(query) {
  return request({
    url: '/system/jiaju/listByChange',
    method: 'get',
    params: query
  })
}
